package com.yuanfeng.payment.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.yuanfeng.commoms.util.ResponseResult;
import com.yuanfeng.payment.dto.CardMemberDetailDTO;
import com.yuanfeng.payment.entity.PayUserResourceEntity;
import io.seata.core.exception.TransactionException;

import javax.servlet.http.HttpServletRequest;
import java.util.Map;

/**
 *
 */
public interface PayUserResourceService extends IService<PayUserResourceEntity> {

    /**
     * 钱包余额展示
     *
     * @param map
     * @return
     */
    ResponseResult balanceDisplay(Map<String, Object> map);

    /**
     * 增加卖家金额
     *
     * @param am
     * @return
     */
    ResponseResult addMoney(Map<String, Object> map);

    /**
     * 用户余额提现
     *
     * @param map
     * @param request
     * @return
     */
    ResponseResult withdrawal(Map<Object, Object> map, HttpServletRequest request);

    /**
     * 用户转账
     *
     * @param map
     * @return
     */
    ResponseResult transfer(Map<Object, Object> map);


    /**
     * 平台查询 会员充值 会员充值
     *
     * @param param
     * @return
     * @throws TransactionException
     */
    ResponseResult updateCardMemberDetailPort(CardMemberDetailDTO param) throws TransactionException;


    /**
     * 平台查询 会员充值列表
     *
     * @param map
     * @return
     */
    ResponseResult query(Map<String, Object> map);


}
